import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/index'
import home from '@/components/home/home'
import searchMovie from '@/components/searchMovie/searchMovie'
import person from '@/components/person/person'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: index,
      children: [
      	{
        	path: '/home',
	        component: home,
	    },
	    {
        	path: '/searchMovie',
	        component: searchMovie,
	    },
	    {
        	path: '/person',
	        component: person,
	    },
      ]
    }
  ]
})
